package com.example.wac.mapper;

import com.example.wac.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author wac
 * @since 2022-01-05
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 查询所有用户
     *
     * @param shardTotalCount
     * @param shardItem
     * @return
     */
    List<User> list(@Param("shardTotalCount") int shardTotalCount, @Param("shardItem") int shardItem);
}
